import { StyleModule } from '../../../../../../lib/abstract'
import { DEFAULT_COPY_BUTTON_ID } from '../../../../content/copy_protection'

export class JueJinStyle extends StyleModule {
  private static instance: JueJinStyle

  readonly GLOBAL_STYLE: string = `
/* 复制代码按钮 */
.code-block-extension-header .code-block-extension-headerRight {
  #${DEFAULT_COPY_BUTTON_ID} {
    font-size: 12px !important;
    color: #4a6485 !important;
    margin: 0 10px !important;
    
    &:hover {
      color: #ee4d38 !important;
    }
  }
}
  `

  /**
   * 获取单例实例
   */
  public static getInstance(): JueJinStyle {
    if (!JueJinStyle.instance) {
      JueJinStyle.instance = new JueJinStyle()
    }
    return JueJinStyle.instance
  }
}
